{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}FastApp - 添加商品{% endblock %}

{% block page_content %}
<div class="page-header"> 
    <h1>查看- {{ category_name }} -下的商品</h1>
    <a class="btn btn-primary" href="/addProduct?category_id={{ category_id }}&category_name={{ category_name }}">添加商品</a>
</div>
{% for product in products %}
		<div class="product-cell">
			<img src="{{ product.get('f_image_url') }}" height="40" width="40" class="product-img">
			<div class="product-title">
				{{ product.get('f_produce_name') }}
			</div>
			<div class="product-title">
				{{ product.get('f_price') }} 元
			</div>
			<div class="product-introduce">
				{{ product.get('f_introduce') }}
			</div>
		</div>
	{% endfor %}

{% endblock %}